import request from "../request";

/* 获取首页数据 */
export function appInfo() {
	return request.get("/app/config");
}

/* 获取首页介绍 */
export function getIntroduce() {
	return request.get("/app/index");
}

/* 上传图片 */
export function upload_image(params) {
	return request.postFile("/upload/image", params);
}

/* 上传音频 */
export function upload_audio(params) {
	return request.postFile("/upload/audio", params);
}

/* 登录 */
export function login(params) {
	return request.post("/login/account", params);
}

/* 个人信息 */
export function user_info() {
	return request.get("/user/info");
}

/* 全局配置 */
export function app_config() {
	return request.get("/app/config");
}

/* 订阅列表 */
export function friendList() {
	return request.get("/friends/friendList");
}

/* 签名UserSig */
export function getUserSign() {
	return request.get("/app/getUserSign");
}

export function logout(params) {
	return request.post("/login/logout", params);
}

/* 发送 */
export function sendCode(params) {
	return request.post("/sms/sendCode", params);
}

/* 改密码 */
export function changePassword(params) {
	return request.post("/user/changePassword", params);
}

/*  获取好友列表  */
export function friendsLists(params) {
	return request.get("/friends/lists", params);
}
/*  添加好友  */
export function friendsAdd(params) {
	return request.post("/friends/add", params);
}
/*  好友详情  */
export function friendsDetails(params) {
	return request.post("/friends/details", params);
}
/*  删除好友  */
export function friendsDelete(params) {
	return request.post("/friends/delete", params);
}
/*  修改角色  */
export function friendsUpdateRole(params) {
	return request.post("/friends/updateRole", params);
}
/*  处理请求  */
export function friendsRequest(params) {
	return request.post("/friends/request", params);
}
/*  在线状态  */
export function friendsOnlineStatus(params) {
	return request.post("/friends/onlineStatus", params);
}

/*  关于我们  */
export function aboutUs(params) {
	return request.post("/index/policy", params);
}

/*拍照列表*/
export function remote_photosLists(params) {
	return request.get("/remote/photosLists", params);
}

/*远程拍照*/
export function remote_takePhotos(params) {
	return request.postFile("/remote/takePhotos", params);
}

/*录音列表*/
export function remote_soundLists(params) {
	return request.get("/remote/soundLists", params);
}

/*远程录音*/
export function remote_takeSound(params) {
	return request.postFile("/remote/takeSound", params);
}

/*  修改个人信息  */
export function updateUserInfo(params) {
	return request.post("/user/changeInfo", params);
}

/*  隐私声明  用户协议  关于我们  */
export function policyIndex(params) {
	return request.get("/index/policy", params);
}

/*  支付配置  */
export function payConfig(params) {
	return request.post("/pay/payConfig", params);
}

/*  充值VIP  */
export function rechargeVip(params) {
	return request.post("/recharge/rechargeVip", params);
}

/*  支付接口  */
export function prepay(params) {
	return request.post("/pay/prepay", params);
}

/*  围栏列表  */
export function geofence_list(params) {
	return request.get("/geofence/lists", params);
}

/*  删除围栏  */
export function geofence_delete(params) {
	return request.post("/geofence/delete", params);
}

/*  设置围栏  */
export function geofence_setup(params) {
	return request.post("/geofence/setup", params);
}

/*  设置围栏   轨迹列表 */
export function trace_lists(params) {
	return request.get("/trace/lists", params);
}

/*  设置围栏  */
export function trace_create(params) {
	return request.post("/trace/create", params);
}

/*  分享好友送Vip  */
export function shareVip(params) {
	return request.post("/user/shareVip", params);
}

/*   新版本下载   */
export function getUpdateWgt(params) {
	return request.get("/app/getUpdateWgt", params);
}

/*   文章分类   */
export function cateClassification(params) {
	return request.get("/article/cate", params);
}

/*   文章列表   */
export function cateLists(params) {
	return request.get("/article/lists", params);
}

/*   文章详情   */
export function cateDetail(params) {
	return request.get("/article/detail", params);
}

/*   获取未读条数   */
export function messageUnreadNum(params) {
	return request.get("/message/unreadNum", params);
}

/*   消息列表   */
export function messageLists(params) {
	return request.get("/message/lists", params);
}

/*   获取单条信息   */
export function messageDetails(params) {
	return request.post("/message/details", params);
}

/*   更新已读   */
export function messageUpdateRead(params) {
	return request.post("/message/updateRead", params);
}

/*   消息类目   */
export function messageCategory(params) {
	return request.get("/message/category", params);
}

/*   轮播图   */
export function advert(params) {
	return request.post("/app/advert", params);
}

/* 一键求救 */
export function friends_sos(params) {
	return request.post("/friends/sos", params);
}

/*   检测房间   */
export function checkRoom(params) {
	return request.post("/trtc/checkRoom", params);
}

/*   退出房间   */
export function outRoom(params) {
	return request.post("/trtc/outRoom", params);
}

/*   反馈列表   */
export function feedbackLists(params) {
	return request.get("/feedback/lists", params);
}

/*   添加反馈   */
export function feedbackAdd(params) {
	return request.post("/feedback/add", params);
}